<!--
消息类别列表
 add by yyp 2019-05-11
-->
<template lang="pug">
  keep-alive
    kalix-table(bizKey="CategoryName" title='消息类别列表' ref="kalixTable"
    v-bind:tableFields="tableFields"
    v-bind:targetURL="CategoryNameURL"
    v-bind:bizDialog="categorynameDialog"
    v-bind:btnList="categorynameBtnList"
    v-bind:toolbarBtnList="toolbarBtnList"
    bizSearch="categorynameSearch")
      <!--template(slot="tableColumnSlot")-->
        <!--el-table-column(prop="newTitle" label="新闻标题" align="center")-->
        <!--el-table-column(prop="newDate" label="新闻日期" align="center")-->
          <!--template(slot-scope="scope")-->
            <!--span {{dataFormat(scope.row.newDate)}}-->
        <!--el-table-column(prop="newUrl" label="新闻图片" align="center")-->
        <!--el-table-column(prop="newDetails" label="新闻详情" align="center")-->
        <!--el-table-column(prop="newOrder" label="新闻排序" align="center")-->
</template>

<script type="text/ecmascript-6">
  import {CategoryNameURL} from '../../config.toml'
  import {categorynameConfigBtnList} from './config'
  import KalixTable from '../../../../../components/corelib/components/common/baseTable'

  export default {
    name: 'kalix-mooc-categoryname',
    components: {KalixTable},
    data() {
      return {
        CategoryNameURL: CategoryNameURL,
        tableFields: [
          {prop: 'name', label: '消息类别名称'}
        ],
        categorynameDialog: [
          {id: 'add', dialog: 'categorynameAdd'},
          {id: 'edit', dialog: 'categorynameEdit'},
          {id: 'view', dialog: 'categorynameView'}
        ],
        categorynameBtnList: categorynameConfigBtnList,
        toolbarBtnList: [
          {id: 'add', isShow: true, title: '添加', icon: 'icon-pinleizengjia', isPermission: true}
        ]
      }
    }
  }
</script>

<style scoped lang="stylus">

</style>
